﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="help.aspx.cs" Inherits="help" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>求助信息</title>
<link rel="stylesheet" type="text/css" href="wuliu.css">
      
        <style type="text/css">
            #form2
            {
                height: 1054px;
            }
        </style>
      
</head>

<body>
<form id="form2" runat="server" >
<div id="container">
	<div id="top">
    	<div id="header"></div>
        <div id="menu">
        	<ul>
            	<li><a href="index.aspx">首页</a></li>
                <li><a href="user.aspx">个人中心</a></li>
                 <li><a href="book.aspx">书刊信息</a></li>
                <li><a href="elc.aspx">家电信息</a></li>
            
                <li><a href="teach.aspx">服务信息</a></li>
                
            </ul>
        </div>
    </div>	
    <div id="content">
      <div id="main" >
      
          <asp:ScriptManager ID="ScriptManager1" runat="server">
          </asp:ScriptManager>
          <asp:UpdatePanel ID="UpdatePanel1" runat="server">
              <ContentTemplate>
                  <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
              AutoGenerateColumns="False" CellPadding="4" DataKeyNames="user_id" 
              DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="None" 
              style="text-align: center" Width="895px">
                      <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                      <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                      <Columns>
                          <asp:CommandField ShowSelectButton="True" />
                          <asp:BoundField DataField="user_pbmsg" HeaderText="标题" 
                      SortExpression="user_pbmsg" />
                          <asp:BoundField DataField="user_datepb" 
                      HeaderText="发布日期" SortExpression="user_datepb" />
                          <asp:BoundField DataField="help_id" HeaderText="产品ID" 
                      ReadOnly="True" SortExpression="help_id" />
                      </Columns>
                      <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                      <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                      <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                      <AlternatingRowStyle BackColor="White" />
                  </asp:GridView>
                  <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" 
                      BackColor="White" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" 
                      CellPadding="4" DataKeyNames="user_id" DataSourceID="LinqDataSource1" 
                      Height="50px" style="text-align: center" Width="890px">
                      <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                      <RowStyle BackColor="White" ForeColor="#003399" />
                      <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
                      <Fields>
                          <asp:BoundField DataField="user_name" HeaderText="发布者" 
                              SortExpression="user_name" />
                          <asp:BoundField DataField="user_email" HeaderText="邮箱" 
                              SortExpression="user_email" />
                          <asp:BoundField DataField="user_phone" HeaderText="联系电话" 
                              SortExpression="user_phone" />
                      </Fields>
                      <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
                      <HeaderTemplate>
                          详细信息
                      </HeaderTemplate>
                      <EditRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                  </asp:DetailsView>
              </ContentTemplate>
          </asp:UpdatePanel>
          <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
              ConnectionString="<%$ ConnectionStrings:infoConnectionString %>" 
              
              
              SelectCommand="SELECT * FROM [b_infohelp]">
          </asp:SqlDataSource>
          <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
              ContextTypeName="infosDataContext" EnableDelete="True" EnableInsert="True" 
              EnableUpdate="True" TableName="b_user" Where="user_id == @user_id">
              <WhereParameters>
                  <asp:ControlParameter ControlID="GridView1" Name="user_id" 
                      PropertyName="SelectedValue" Type="String" />
              </WhereParameters>
          </asp:LinqDataSource>
	      
	    
      
    
	      
	   </div>
  </div>
    <div id="footer">
        版权所有 Copyright ©长江大学计算机科学学院 All Rights Reserveda 
        href=&quot;#&quot;&gt;联系站长&quot;#&quot;&gt;网站地图;#&quot;&gt;联系站长&quot;#&quot;&gt;网站地图/body>
</form>
</body>

</html>


